package com.wejoy.video.middle.station.data.service.screen;

import com.wejoy.video.middle.station.data.domain.screen.ScreenUserCarmeraConfig;

import java.util.List;

/**
 * 用户大屏监控记忆配置 
 *
 * @author miracle_j
 * @date 2024年11月30日 14:15:42
 */
public interface IScreenUserCarmeraConfigService {
    /**
     * 保存或更新
     * @param req
     */
    void save(ScreenUserCarmeraConfig req, String operator);

    /**
     * 插入
     *
     * @param screenUserCarmeraConfig screenUserCarmeraConfig
     * @return int
     */
    int insertSelective(ScreenUserCarmeraConfig screenUserCarmeraConfig);

    /**
     * 主键更新
     *
     * @param screenUserCarmeraConfig screenUserCarmeraConfig
     * @return int
     */
    int updateSelectiveById(ScreenUserCarmeraConfig screenUserCarmeraConfig);

    /**
     * 数量
     *
     * @param screenUserCarmeraConfig screenUserCarmeraConfig
     * @return int
     */
    int getCount(ScreenUserCarmeraConfig screenUserCarmeraConfig);

    /**
     * 主键查询
     *
     * @param id id
     * @return ScreenUserCarmeraConfig
     */
    ScreenUserCarmeraConfig getOneById(Long id);

    /**
     * 根据用户id
     *
     * @param id id
     * @return ScreenUserCarmeraConfig
     */
    ScreenUserCarmeraConfig getOneByUserId(Long id,Integer type);

    /**
     * 多条
     *
     * @param screenUserCarmeraConfig screenUserCarmeraConfig
     * @return List<ScreenUserCarmeraConfig>
     */
    List<ScreenUserCarmeraConfig> getList(ScreenUserCarmeraConfig screenUserCarmeraConfig);

    /**
     * 分页
     *
     * @param screenUserCarmeraConfig screenUserCarmeraConfig
     * @return List<ScreenUserCarmeraConfig>
     */
    List<ScreenUserCarmeraConfig> getPageList(ScreenUserCarmeraConfig screenUserCarmeraConfig);

    /**
     * 审核
     * @param id
     * @param operator
     */
    void audit(Long id, String operator);

    /**
     * 取消审核
     * @param id
     * @param operator
     */
    void unaudit(Long id, String operator);

    /**
     * 删除
     * @param id
     * @param operator
     */
    void delete(Long id, String operator);
}
